Photon Diffusion in the Sun


This simulation models the journey of photons from the core of the Sun to its surface. Despite the speed of light, photons are scattered repeatedly due to the dense plasma, causing them to take thousands of years to escape.

Python logo Python
Python logoglowScript
Python logo physics
Photon simulation result

Technologies Used:

Project Summary:

Using randomized movement (random walk), this simulation estimates how long it takes for photons to reach the sun’s surface, depending on the average distance between collisions. It demonstrates the concept that light, while fast, is delayed by continuous scattering.